package cn.hallele.leinsteining.mc.infrastructure.metadata.io;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;

/**
 * Response
 *
 * @author anle5
 * @since 2024/7/26 0:12
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "统一响应")
public class Response<T> implements Serializable {
    @Serial
    private static final long serialVersionUID = -5090326667859974352L;

    /**
     * 响应体指标
     */
    @Schema(description = "响应体指标")
    private Metric metric;

    /**
     * 数据
     */
    @Schema(description = "响应体数据")
    private T data;
}
